package com.neusoft.mapper;

import com.neusoft.po.RedemptionRecord;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface RedemptionRecordMapper {

    @Insert("INSERT INTO redemption_record (userId, productId, productName, pointCost, redemptionDate) " +
            "VALUES (#{userId}, #{productId}, #{productName}, #{pointCost}, #{redemptionDate})")
    int insertRedemptionRecord(RedemptionRecord record);
}
